package a.h;

import a.j.ab;

import javax.swing.*;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.TableCellRenderer;
import java.awt.*;
import java.awt.geom.AffineTransform;

public class s
  implements ListCellRenderer, TableCellRenderer
{
  private final DefaultListCellRenderer a = new DefaultListCellRenderer()
  {
    public void paintComponent(Graphics paramAnonymousGraphics)
    {
      super.paintComponent(paramAnonymousGraphics);
      s.this.a(this, paramAnonymousGraphics);
    }
  };
  private final DefaultTableCellRenderer b = new DefaultTableCellRenderer()
  {
    public void paintComponent(Graphics paramAnonymousGraphics)
    {
      super.paintComponent(paramAnonymousGraphics);
      s.this.a(this, paramAnonymousGraphics);
    }
  };
  private ab c = null;
  public static int d;
  
  public Component getListCellRendererComponent(JList paramJList, Object paramObject, int paramInt, boolean paramBoolean1, boolean paramBoolean2)
  {
    int i = ec.t;
    JLabel localJLabel = (JLabel)this.a.getListCellRendererComponent(paramJList, paramObject, paramInt, paramBoolean1, paramBoolean2);
    localJLabel.setPreferredSize(new Dimension(30, 20));
    localJLabel.setText("");
    if (i == 0)
    {
      if ((paramObject instanceof ab))
      {
        if (i != 0) {
          break label79;
        }
        this.c = ((ab)paramObject);
      }
    }
    else {
      if (!ec.s) {
        break label83;
      }
    }
    label79:
    this.c = null;
    label83:
    return localJLabel;
  }
  
  public Component getTableCellRendererComponent(JTable paramJTable, Object paramObject, boolean paramBoolean1, boolean paramBoolean2, int paramInt1, int paramInt2)
  {
    int i = ec.t;
    JLabel localJLabel = (JLabel)this.b.getTableCellRendererComponent(paramJTable, paramObject, paramBoolean1, paramBoolean2, paramInt1, paramInt2);
    localJLabel.setPreferredSize(new Dimension(30, 20));
    localJLabel.setText("");
    if (i == 0)
    {
      if ((paramObject instanceof ab))
      {
        if (i != 0) {
          break label81;
        }
        this.c = ((ab)paramObject);
      }
    }
    else {
      if (!ec.s) {
        break label85;
      }
    }
    label81:
    this.c = null;
    label85:
    return localJLabel;
  }
  
  void a(JComponent paramJComponent, Graphics paramGraphics)
  {
    int j = ec.t;
    Graphics2D localGraphics2D = (Graphics2D)paramGraphics;
    Dimension localDimension = paramJComponent.getSize();
    if (this.c != null)
    {
      Color localColor = localGraphics2D.getColor();
      Stroke localStroke = localGraphics2D.getStroke();
      Object localObject1 = localGraphics2D.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
      try
      {
        localGraphics2D.setColor(paramJComponent.getForeground());
        localGraphics2D.setStroke(c.e);
        Insets localInsets = paramJComponent.getInsets();
        if (j == 0) {
          if (localInsets == null) {
            localInsets = new Insets(0, 0, 0, 0);
          }
        }
        int i = localInsets.top + (int)((localDimension.getHeight() - localInsets.top - localInsets.bottom) / 2.0D);
        localGraphics2D.drawLine(localInsets.left + 5, i, (int)(localDimension.getWidth() - 5.0D - this.c.f() - this.c.g()) - localInsets.right, i);
        AffineTransform localAffineTransform = AffineTransform.getTranslateInstance(localDimension.getWidth() - 5.0D - this.c.g() - localInsets.right, i);
        if (j == 0)
        {
          localGraphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
          this.c.a(localGraphics2D, localAffineTransform);
          if (this.c.g() <= 0.0D) {}
        }
        else
        {
          localGraphics2D.drawLine((int)localDimension.getWidth() - 5, localInsets.top + 1, (int)(localDimension.getWidth() - 5.0D), (int)(localDimension.getHeight() - localInsets.top - localInsets.bottom - 1.0D));
        }
      }
      finally
      {
        localGraphics2D.setColor(localColor);
        localGraphics2D.setStroke(localStroke);
        localGraphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, localObject1);
      }
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.s

 * JD-Core Version:    0.7.0.1

 */